
function png_bg_fixed(obj){
	var bg = obj.currentStyle.backgroundImage.toUpperCase();
	if (!bg) return;
	if (bg.match(/.PNG/i) != null){
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+bg.substring(5,bg.length-2)+"', sizingMethod='scale')";
		obj.style.backgroundImage = "url('')";
	}
}
function png_tag_fixed(obj){
	var imgName = obj.src.toUpperCase();
	if (imgName.substring(imgName.length-3, imgName.length) != 'PNG') return ;
	var imgStyle =  'width:' + obj.width + 'px; height:' + obj.height + 'px;'
		+((obj.align == 'left')?'float:left;':'')
		+((obj.align == 'right')?"float:right;":'')
		+((obj.parentElement.href)?'cursor:hand;':'')
		+'display:inline-block;' + obj.style.cssText
		+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader'
		+"(src=\'" + obj.src + "\', sizingMethod='scale');";
	$("<span "
		+ ((obj.id) ? "id='" + obj.id + "' " : "")
		+ ((obj.className) ? "class='" + obj.className + "' " : "")
		+ ((obj.title) ? "title='" + obj.title + "' " : "title='" + obj.alt + "' ")
		+ " style=\"" + imgStyle + "\"></span>").replaceAll(o);
}

$(document).ready(function() {
	$(".J_KCWidget").J_KCWidget();
	if(!window.XMLHttpRequest){
		$(".pngbg").each(function(){
				png_bg_fixed($(this)[0]);
		});
		$(".pngtag").each(function(){
				png_tag_fixed($(this)[0]);
		});
	}
	

	
	
});

function getClassMenu(t,o){
	$(o).bind("mouseleave",function(){
		J_KCWidget.$['pop1'].fn.close()
	})
};


